package com.reebake.ideal.permission.mapper;

import com.reebake.ideal.permission.entity.Menu;
import com.reebake.ideal.permission.entity.MetadataSourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionAuthMapper {

    List<Menu> selectMenuByUser(@Param("userId")String userId, @Param("menuType")String menuType);

    List<MetadataSourceEntity> selectMetadata();

    List<String> selectRoleCodeByUser(@Param("userId")String userId);
}
